package com.newlandedu.antchainvote.antchain.utils;

/**
 * 用途
 *
 * @author deng
 * @date 2020/11/16 9:13
 */
public class AntChainUtils {


    public static byte[] toByte32(int value) {
        String str = String.format("%032d", value);
        return str.getBytes();

    }


    /**
     * 转换成整形
     *
     * @param rawValue
     * @return
     */
    public static Integer toInteger(String rawValue) {
        return (int) Long.parseLong(rawValue, 16);
    }
}
